home *** CD-ROM | disk | FTP | other *** search
- PATH
-
- Controls the directory list that the Shell searches to find commands.
-
- Format
-
- PATH [{<dir>}] [ADD] [SHOW] [RESET] [REMOVE] [QUIET]
-
- Template
-
- PATH/M,ADD/S,SHOW/S,RESET/S,REMOVE/S,QUIET/S
-
- Location
-
- Internal
-
- PATH lets you see, add to, or change the search path the AmigaDOS follows
- when looking for a command or program to execute. When a directory is in the
- search path, you do not need to specify the complete path to any command
- within that directory. Entering the name alone makes AmigaDOS look through
- the directories in the search path until it finds the file.
-
- Note:
-
- The search path is only relevant when AmigaDOS is searching for a command or
- program to execute. Full path specifications are always necessary in
- arguments for commands such as COPY and DELETE.
-
- Enter the PATH command alone or with the SHOW option to display directory
- names in the current search path. Normally, when PATH is displaying the
- directory names, a requester appears if a volume that is part of the search
- path cannot be found. For example, if you add a floppy disk to the search
- path and then remove that disk from the disk drive, a requester asks you to
- insert the disk.
-
- If you specify the QUIET option, PATH does not display requesters for volumes
- that are not currently mounted. If PATH encounters an unmounted volume, it
- displays the message device (or volume) is not mounted . The names of any
- directories on that volume included in the PATH are not displayed.
-
- The ADD option specifies directory to be added to the current PATH. You can
- add any number of directories with one PATH ADD command (the ADD keyword is
- optional); names of the directories must be separated by at least one space.
- When you issue the PATH command, AmigaDOS searches for each of the ADDed
- directories.
-
- To replace the existing search path with a new one, use PATH RESET followed
- by the names of the new directories. The existing search path, except for the
- current directory and C:, is erased and the new one is substituted.
-
- The REMOVE option eliminates the named directory from the search path.
-
- Example:
-
- 1> PATH EXTRAS:Tools ADD
-
- adds the Tools directory in the Extras drawer to the search path of the
- Shell. If the EXTRAS: is not in a disk drive, a requester asks you to insert
- it in any drive.
-
- If you remove EXTRAS: from the drive and enter:
-
- 1> PATH
-
- a list of directories in the search path is displayed. A requester asks you
- to insert EXTRAS:. If you enter:
-
- 1> PATH QUIET
-
- the list of directories in the search path is displayed. However, when the
- path comes to Extras:Tools, the error message appears in the list.
-
- See also: ASSIGN. For more examples using PATH, see Chapter 8.
-